#{extends 'main.html' /} #{set title:'Home' /}
<div id=main>
	<body>
		<form name="edit" action="@{DraftController.editedDraft(draft.id)}"
			method="Post">
			<h1>${draft.subject}</h1>
			<p>
				<label>Subject*: </label> <input type="text" name="editsubject"
					value=${draft.subject}>
			</p>
			<p>
				<label>Body*: </label>
				<textarea rows="20" cols="50" name="editbody">${draft.body}</textarea>

			</p>
			<input type="submit" name="submitedit" value="Save!" />
		</form>
		<form name="canceledit" action="@{DraftController.createDraft()}"
			method="Get">
			<input type="submit" name="canceledit" value="Cancel" />
		</form>
</div>